package com.example.demo.sample;
/*
 * Copyright © 2020-2035 erupt.xyz All rights reserved.
 * Author: YuePeng (erupts@126.com)
 */

import javax.persistence.*;
import xyz.erupt.annotation.*;
import xyz.erupt.annotation.sub_erupt.*;
import xyz.erupt.annotation.sub_field.*;
import xyz.erupt.annotation.sub_field.sub_edit.*;
import xyz.erupt.upms.model.base.HyperModel;
import xyz.erupt.jpa.model.BaseModel;
import java.util.Set;
import java.util.Date;

@Erupt(name = "企业信息模板")
@Table(name = "company_info")
@Entity
public class CompanyInfo extends BaseModel {

        @EruptField(
                views = @View(
                        title = "企业名称"
                ),
                edit = @Edit(
                        title = "企业名称",
                        type = EditType.INPUT, search = @Search, notNull = true,
                        inputType = @InputType
                )
        )
        private String name;

        @EruptField(
                views = @View(
                        title = "Excel"
                ),
                edit = @Edit(
                        title = "Excel",
                        type = EditType.ATTACHMENT, search = @Search, notNull = true,
                        attachmentType = @AttachmentType
                )
        )
        private String file;

}